lib/repo-finder-mount: Fix path to flatpak repo
authorMatthew Leeds <matthew.leeds@endlessm.com>
Tue, 27 Feb 2018 02:54:54 +0000 (18:54 -0800)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 27 Feb 2018 20:53:46 +0000 (20:53 +0000)
commit6db6268dfd76dfb36bd7bd756fe78ba8a1abcd5b
treeebfe34072f5bd1460d7c2c704b85178be321a205
parentee1f6b23153fea4324b9bdf6de417863931b6aa1
lib/repo-finder-mount: Fix path to flatpak repo

OstreeRepoFinderMount checks mounts for a few well-known directories
such as "ostree/repo" and ".ostree/repo" to try to find remotes. One of
the hard-coded directories is "var/lib/flatpak" but that's the flatpak
directory, not the ostree repo used by flatpak, which is at
"var/lib/flatpak/repo". So this commit changes the path so the repo can
be found.

For recent versions of Endless, flatpak uses /ostree/repo as its
repository, so this commit won't make a difference there. But it may
help on other operating systems.

Closes: #1471
Approved by: cgwalters
src/libostree/ostree-repo-finder-mount.c